package com.hc.tenant.domain;

import java.math.BigDecimal;
import java.util.List;
import com.hc.common.core.annotation.Excel;
import com.hc.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 机器人运行信息对象 t_robot_info
 *
 * @author yjz
 * @date 2021-04-09
 */
public class RobotInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 绑定的用户ID */
    private Long userId;

    private Long currentGpsLocationId;
    private GpsLocation currentGpsLocation;

    private RobotSetting robotSetting;

    /** 剩余电量 */
    private Integer powerLevel;

    /** 运行时长 */
    private BigDecimal runTime;



    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setPowerLevel(Integer powerLevel)
    {
        this.powerLevel = powerLevel;
    }

    public Integer getPowerLevel()
    {
        return powerLevel;
    }
    public void setRunTime(BigDecimal runTime)
    {
        this.runTime = runTime;
    }

    public BigDecimal getRunTime()
    {
        return runTime;
    }

    public GpsLocation getCurrentGpsLocation() {
        return currentGpsLocation;
    }

    public void setCurrentGpsLocation(GpsLocation currentGpsLocation) {
        this.currentGpsLocation = currentGpsLocation;
    }

    public RobotSetting getRobotSetting() {
        return robotSetting;
    }

    public void setRobotSetting(RobotSetting robotSetting) {
        this.robotSetting = robotSetting;
    }

    public Long getCurrentGpsLocationId() {
        return currentGpsLocationId;
    }

    public void setCurrentGpsLocationId(Long currentGpsLocationId) {
        this.currentGpsLocationId = currentGpsLocationId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("currentGpsLocationId", getCurrentGpsLocationId())
                .append("currentGpsLocation", getCurrentGpsLocation())
                .append("robotSetting", getRobotSetting())
                .append("powerLevel", getPowerLevel())
                .append("runTime", getRunTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}